﻿#ifndef DTUMANAGER_H
#define DTUMANAGER_H

#include "chart.h"
#include "serial_driver.h"
#include "macro.h"
#include "tcpthread.h"
#include <QTcpSocket>

class DTUManager : public QObject
{
    Q_OBJECT
public:
    DTUManager();
    virtual ~DTUManager();

public:
    Chart* getChart(size_t i);

signals:
    void sigShowData(int, int);

public slots:
    void slotDTUUpdate(int, int);

private:
    Chart* charts[4];
    void resume();
    clock_t begin, end;
};

#endif // DTUMANAGER_H
